<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
	<title>首页 - 驴妈妈流立方</title>
	<meta name="description" content="overview &amp; stats" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
	<script src="${rc.contextPath}/assets/js/jquery.2.1.1.min.js"></script>
	<script src="${rc.contextPath}/assets/js/bootstrap.min.js"></script>
	<script src="${rc.contextPath}/assets/js/jquery-ui.custom.min.js"></script>
	<script src="${rc.contextPath}/assets/js/jquery.ui.touch-punch.min.js"></script>
	<script src="${rc.contextPath}/assets/js/bootbox.min.js"></script>
	<script src="${rc.contextPath}/assets/js/jquery.gritter.min.js"></script>
	<script src="${rc.contextPath}/assets/js/spin.min.js"></script>
	<!-- ace scripts -->
	<script src="${rc.contextPath}/assets/js/ace-elements.min.js"></script>
	<script src="${rc.contextPath}/assets/js/ace.min.js"></script>
	<!-- validator scripts -->
	<script src="${rc.contextPath}/assets/js/bootstrapValidator.min.js"></script>
	<!-- user scripts -->
	<script src="${rc.contextPath}/assets/js/user/base.js"></script>
	<link rel="stylesheet" href="${rc.contextPath}/assets/css/bootstrap.css" />
	 <link rel="stylesheet" href="${rc.contextPath}/assets/css/bootstrap.min.css" />
	
	<link rel="stylesheet" href="${rc.contextPath}/assets/font-awesome/4.2.0/css/font-awesome.min.css" />
	<!-- page specific plugin styles -->
	<link rel="stylesheet" href="${rc.contextPath}/assets/css/jquery-ui.custom.min.css" />
	<link rel="stylesheet" href="${rc.contextPath}/assets/css/jquery.gritter.min.css" />
	<!-- text fonts -->
	<link rel="stylesheet" href="${rc.contextPath}/assets/fonts/fonts.googleapis.com.css" />
	<!-- BootstrapValidator -->
	<link rel="stylesheet" href="${rc.contextPath}/assets/css/bootstrapValidator.min.css" />
	<!-- ace styles -->
	<link rel="stylesheet" href="${rc.contextPath}/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
	<!-- ace settings handler -->
	<script src="${rc.contextPath}/assets/js/ace-extra.min.js"></script> 
	<link rel="stylesheet" href="${rc.contextPath}/assets/css/bsie-paginator.css" />
</head>

<body class="no-skin" style="background-color: #FFF;">
<div class="page-content">
	<div class="tab-content">
		<div class="row">
			<div class="form-group">
				<div class="pull-left tableTools-container" style="margin-left: 20px">
					<button class="btn btn-sm btn-primary" onclick="skip('${rc.contextPath}/pushConfiguration/add')"><i class="ace-icon fa fa-pencil-square-o align-top bigger-125"></i>添加配置</button>
				</div>
			</div>
			<div class="col-xs-12">
				<div class="widget-box">
				</div>
					<div class="widget-header widget-header-small">
					</div>
					<div class="widget-body" style="background-color: #EFF3F8;">
						<div class="widget-main">
							<form class="form-inline" id="searchForm" method="post" action="${rc.contextPath}/pushConfiguration/pushConfigurationManagement">
								<div class="form-group">
									<label for="exampleInputName2">参数名称</label>
									<input type="text" id="parameterName" class="form-control" name="parameterName" value="${PushConfigurationVO.parameterName}" placeholder="请输入查询的参数名称" size=20>
								</div>
								<div class="form-group">
									<label for="exampleInputName2">状态</label>
									<select data-placeholder="" class="chosen-select" tabindex="2" name="state" id="state" style="width:85px">
										<#list flagTypeList as type>
											<option value="${type.value}" <#if PushConfigurationVO.state== type.value>selected</#if>>${type.showName}</option>
										</#list>
									</select>
								</div>
								<div class="form-group">
									<button id="search" type="button" onclick="searchClick();" class="btn btn-pink btn-sm" style="margin-left:10px;">
										<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
										Search
									</button>
								</div>
							</form>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-12">
				<div class="widget-box">
					<form class="form-inline" id="searchForm" method="post" action="${rc.contextPath}/pushConfiguration/pushConfigurationManagement">
						<table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer" role="grid" aria-describedby="dynamic-table_info">
							<thead>
							<tr>
								<th>序号</th>
								<th>参数名称</th>
								<th>参数值</th>
								<th>状态</th>
								<th>更新人</th>
								<th>更新时间</th>
								<th>创建人</th>
								<th>创建时间</th>
								<th>备注</th>
								<th>操作</th>
							</tr>
							</thead>
							<tbody>
							<#if pushConfigurationList?? && pushConfigurationList?size&gt;0>
								<#list pushConfigurationList as push>
									<tr class="">
										<td>${push_index + 1}</td>
										<td>${push.parameterName}</td>
										<td>${push.parameterValues!}</td>
										<td><#if '${push.state!}' == '0'>启用
											<#else>禁用
											</#if>
										</td>
										<td width="10%">${push.updatePeople!}</td>
										<td width="10%">
									      ${push.updateTime?string('yyyy-MM-dd HH:mm:ss')}
										</td>
										<td width="10%">${push.createPeople!}</td>
									   <td width="10%">
									        ${push.createTime?string('yyyy-MM-dd HH:mm:ss')}
									    </td>
										<td width="20%">${push.remarks!}</td>
										<td>
											<a class="btn btn-minier btn-purple" href="${rc.contextPath}/pushConfiguration/edit?id=${push.id!}" role="button">编辑</a>
											<!-- <a class="btn btn-xs btn-pink"  onclick="delConfiguration('${push.id!}')">删除</a> -->
										</td>
									</tr>
								</#list>
								<#else>
									<tr>
										<td colspan="12">
											<div class="alert alert-danger" style="margin-bottom: 0px;" role="alert">没有记录!</div>
										</td>
									</tr>
							</#if>
							</tbody>
						</table>
						<#include "paginator.html">
					</form>
				</div>
			</div>
		</div>
	</div>
</div>

<script src="${rc.contextPath}/assets/js/moment.min.js"></script>
<script src="${rc.contextPath}/assets/js/bootstrap-datetimepicker.min.js"></script>

<link rel="stylesheet" href="${rc.contextPath}/stylesheets/daterangepicker.css">
<script type="text/javascript" src="${rc.contextPath}/javascripts/jquery.2.1.1.min.js"></script>
<script type="text/javascript" src="${rc.contextPath}/javascripts/bootstrap.min.js"></script>
<script type="text/javascript" src="${rc.contextPath}/javascripts/moment.js"></script>
<script type="text/javascript" src="${rc.contextPath}/javascripts/daterangepicker.js"></script>

<script type="text/javascript" src="${rc.contextPath}/javascripts/echarts.js"></script>
<script type="text/javascript" src="${rc.contextPath}/javascripts/china.js"></script>
<script src="${rc.contextPath}/assets/js/jquery.gritter.min.js"></script>

<script src="${rc.contextPath}/assets/js/chosen.jquery.js"></script>

<script type="text/javascript">
    function delConfiguration(id) {
        $.ajax({
            type:"post",
            url:"${rc.contextPath}/pushConfiguration/deleteConfiguration?id=" + id,
            success:function(data){
                if (data.code == 1) {
                    showMsg("删除成功！");
                  /*   location.reload(); */
                }
            }
        });
    }

    function searchClick() {
        var parameterName = $("#parameterName").val();
        var state = $("#state").val();

        $("#searchForm").submit();
    }
</script>
</body>
</html>